<html>

<head>

<title>TrivialApplet</title>

<script>

<!--

    function getGraphPoints() {

       var ct = document.graphApplet.getPointCount();

       var str = "Graph has " + ct + " points.\n\n";

       for (var i = 0; i < ct; i++) {

          str = str + document.graphApplet.getX(i) + "   " + document.graphApplet.getY(i) + "   " + document.graphApplet.getDerivative(i) + "\n";

       } 

       document.control.pointDisplay.value = str;

    }

// -->

</script>

</head>

<body>

<hr>

<applet name="graphApplet" archive="SketchGraph.jar"
code="SketchGraph.class" width=350 height=300>

</applet>

<hr>



<form name="control">



<p>

Y-values: 

<input type="text" name="points" size=50> 

<input type="button" name="setPts" value="Set" onClick="document.graphApplet.setPoints(points.value)">

<br><br>

&nbsp;&nbsp;&nbsp;&nbsp;

<input type="button" name="showGrid" value="Show Grid" onClick="document.graphApplet.setShowGrid(true)">

<input type="button" name="hideGrid" value="Hide Grid" onClick="document.graphApplet.setShowGrid(false)">

<input type="button" name="reset" value="Reset to Zero" onClick="document.graphApplet.reset()">

<br><br>

<input type="button" name="getPts" value="Get Points" onClick="getGraphPoints()"><br>

<textarea name="pointDisplay" rows=10 cols=60></textarea>

</p>



</form>



</body>

</html>

